import request from '/src/utils/request'


export function getToDayTopNews(param) {
    return request({
        url: '/toDayTopApi/getToDayTopNews',
        method: 'get',
        data: param
    })
}
export function downloadSmallRedBookMainItemImg(param) {
    return request({
        url: '/toDayTopApi/downloadSmallRedBookMainItemImg',
        method: 'post',
        data: param
    })
}

export function downloadSmallRedBookLogImg(param) {
    return request({
        url: '/toDayTopApi/downloadSmallRedBookLogImg',
        method: 'post',
        data: param
    })
}

export function redBooKInsert(param) {
    return request({
        url: '/toDayTopApi/redBooKInsert',
        method: 'post',
        data: param
    })
}

export function getForWordUrl(param) {
    return request({
        url: '/toDayTopApi/getForWordUrl',
        method: 'post',
        data: param
    })
}

export function redBooKQuery(param) {
    return request({
        url: '/toDayTopApi/redBooKQuery',
        method: 'post',
        data: param
    })
}

export function download(param) {
    return request({
        url: '/toDayTopApi/download',
        method: 'post',
        data: param
    })
}

export function downloadZip(param) {
    return request({
        url: '/toDayTopApi/downloadZip',
        method: 'post',
        data: param,
        responseType: 'blob',
    })
}

// export function downloadZip(param) {
//     return request({
//         url: '/taoBaoSpuDownload/downloadZip',
//         method: 'post',
//         data: param,
//         responseType: 'blob',
//     })
// }


export function deletes(param) {
    return request({
        url: '/toDayTopApi/delete',
        method: 'post',
        data: param
    })
}

export function queryByShopId(param) {
    return request({
        url: '/toDayTopApi/queryByShopId',
        method: 'post',
        data: param
    })
}
export function spuQuery(param) {
    return request({
        url: '/taoBaoData/spuQuery',
        method: 'post',
        data: param
    })
}

export function getTbShop(param) {
    return request({
        url: '/taoBaoSpuDownload/getTbShop',
        method: 'post',
        data: param
    })
}

export function getTbShopList(param) {
    return request({
        url: '/taoBaoSpuDownload/getTbShopList',
        method: 'post',
        data: param
    })
}


export function deleteTbShop(param) {
    return request({
        url: '/taoBaoSpuDownload/deleteTbShop',
        method: 'post',
        data: param
    })
}

export function tbDownloadZip(param) {
    return request({
        url: '/taoBaoSpuDownload/downloadZip',
        method: 'post',
        data: param,
        responseType: 'blob',
    })
}


export function loginUser(param) {
    return request({
        url: '/user/loginUser',
        method: 'post',
        data: param,
    })
}
